package com.guoxue.domain;

import java.io.Serializable;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

import org.hibernate.annotations.GenericGenerator;

/**
 * 由工具生成的java类,手工修改无效!
 * 
 * 
 */
@Entity
@Table(name = "OSSAKVo")
public class OSSAKVo implements Cloneable, Serializable {
	/**
	 * 临时AK-id
	 */
	private String accessKeyId = "";
	/**
	 * 临时AK-Secret
	 */
	private String accessKeySecret = "";
	/**
	 * 临时AK-Token
	 */
	private String securityToken = "";	
	/**
	 * 临时AK-过期时间
	 */
	private Long expiration = 0L;
	/**
	 * 临时AK-请求方式（GET/POST）
	 */
	private String httpMethod = "";
	/**
	 * 临时AK-请求资源类型（1图片/2音频）
	 */
	private int keyType = 1;
	/**
	 * 临时AK-请求资源类型（1图片/2音频）
	 */
	private String localUrl = "";
	
	
	/**
	 * 主键id
	 */
	@Id
	@GenericGenerator(name = "generator", strategy = "identity")
	@GeneratedValue(generator = "generator", strategy = GenerationType.IDENTITY)
	private int id;
	/**
	 * 删除标识码
	 */
	private int sysflag=0;

	public String getAccessKeyId() {
		return accessKeyId;
	}

	public void setAccessKeyId(String accessKeyId) {
		this.accessKeyId = accessKeyId;
	}

	public String getAccessKeySecret() {
		return accessKeySecret;
	}

	public void setAccessKeySecret(String accessKeySecret) {
		this.accessKeySecret = accessKeySecret;
	}

	public String getSecurityToken() {
		return securityToken;
	}

	public void setSecurityToken(String securityToken) {
		this.securityToken = securityToken;
	}

	public Long getExpiration() {
		return expiration;
	}

	public void setExpiration(Long expiration) {
		this.expiration = expiration;
	}

	public String getHttpMethod() {
		return httpMethod;
	}

	public void setHttpMethod(String httpMethod) {
		this.httpMethod = httpMethod;
	}

	public int getKeyType() {
		return keyType;
	}

	public void setKeyType(int keyType) {
		this.keyType = keyType;
	}

	public String getLocalUrl() {
		return localUrl;
	}

	public void setLocalUrl(String localUrl) {
		this.localUrl = localUrl;
	}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public int getSysflag() {
		return sysflag;
	}

	public void setSysflag(int sysflag) {
		this.sysflag = sysflag;
	}
	@Override
	public String toString() {
		return "OSSAKVo [accessKeyId=" + accessKeyId + ", id=" + id + ", sysflag=" + sysflag + ", accessKeySecret=" + accessKeySecret + ", securityToken="
				+ securityToken + ", expiration="+ expiration + ", keyType="+ keyType + ", localUrl="+ localUrl + ", httpMethod="+ httpMethod + "]";
	}
	
	
}
